package com.hfxt.config;

import com.hfxt.entity.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


@Configuration
public class UserConfig {
    @Bean(name="user0")
    public User user() {
        User user = new User();
        user.setId(111L);
        user.setUserName("杨三金");
        user.setGender(1);
        return user;
    }
}
